<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
	<link rel="stylesheet" href="__STATIC__/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="__STATIC__/assets/css/admin.css">
  <script type="text/javascript" src="__STATIC__/lib/jquery-1.10.2.js"></script>
  <script type="text/javascript" src="__STATIC__/lib/plupload/js/plupload.full.min.js"></script>
   <link rel="stylesheet" href="__STATIC__/lib/ace_admin/css/bootstrap.min.css" />
    <!--[if lt IE 9]>
	<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
	<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
	<script src="__STATIC__/assets/js/amazeui.ie8polyfill.min.js"></script>
	<![endif]-->	
	<script src="__STATIC__/assets/js/amazeui.min.js"></script>
	<script src="__STATIC__/assets/js/app.js"></script>
   <!--[if lte IE 8]>
    <style>
        .fileinput-button {
            position: relative;
            display: inline-block;
            overflow: hidden;
        }
        .fileinput-button input{
            position:absolute;
            right: 0px;
            top: 0px;
            opacity: 0;
            -ms-filter: 'alpha(opacity=0)';
            font-size: 100px;
        }
    </style>
    <![endif]-->
	<style>body{overflow: auto;}</style>
	</head>
<body>
<div class="am-g">
	<div class="am-tab-panel am-fade am-in am-active" id="tab1"> 
		<!--分类筛选start--->
		  <div class="layui-colla-item">
				<div id="fundyeji" class="search-condition">
					<div class="layui-tab layui-tab-card" style="position: relative;">
					<!--一级分类循环 START--->
					<{assign name="now_pid" value="$subid" /}>
					  <{volist name="all_cate" id="li"}>
					  <ul class="layui-tab-title" id="ontype">
					   <{volist name="li" id="val"}>
						<li <{in name="val['TypeID']" value="$subid"}> class="layui-btn actived"<{assign name="now_pid" value="$val['TypePath']" /}><{/in}> onclick="location.href='<{:url('wholetype/whotypeget')}>?subid=<{$val.TypePath}>&futopid=<{$futopid}>'"><{$val.TypeName}>
						</li>
						<{/volist}>
					  </ul>
					  <{/volist}>
					  <!--一级分类循环 END--->
					</div>
				</div>
				<div class="clearfloat"></div>
				<div class="am-form-group"><br/>
					<div class="am-u-sm-3">
						<input type="hidden" value="<{$subid}>" name="subjectypepath" id="subjectypepath">
						<button id="submitForm" class="am-btn am-btn-primary am-radius am-btn-block" type="button">确定</button>
					</div>
					<div class="am-u-sm-3"></div>
					<br/><br/>
				</div>
		  </div>
		<!--分类筛选END--->
</div>
  <!-- content end -->
<script type="text/javascript" src="__STATIC__/assets/js/jquery.form.js"></script>
<script src="__STATIC__/home/pc/js/layer/layer.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$("#submitForm").click(function () {
		var subjectypepath = $("#subjectypepath").val();
		$.ajax({
			type: "post",
			//url: "<{:url('Import/kemu')}>",
			url: "/manage.php/wholetype/whotypeget.html",
			data: {subjectypepath: subjectypepath},
			success: function (res) {
				if (res.code) {
					$("#subject_classify", window.parent.document).html(res.msg.typeinfo);
					$("input[name=TypePID]", window.parent.document).val(res.msg.subjectypepath);
					var index = parent.layer.getFrameIndex(window.name);
					parent.layer.close(index);
				} else {
					layer.msg(res.msg.msg);
				}
			}
		});
	});
</script>
</body>
</html>